package code.ws_common_scene.data
{
	import code.ws_common_scene.data.base.Damage;

	/**
	 * 血伤害数据 
	 * @author Jonathan Qiang
	 * 
	 */	
	public class HpDamage extends Damage
	{
		/** 血伤害 */
		public var _count:int;
		/** 是否暴击 */
		private var _isCrit:Boolean = false;
		
		/**
		 * 构造函数 
		 * 
		 */		
		public function HpDamage()
		{
			super( Damage.HURT_HP );
		}
		
		
		/**
		 * 是否为暴击 
		 * @param bol
		 * 
		 */		
		public function set isCrit( bol:Boolean ):void
		{
			_isCrit = bol;
			
			if( bol )
			{
				_count *= 3;
			}
		}
		public function get isCrit():Boolean
		{
			return _isCrit;
		}
	}
}